package com.test.single;

public class Single {
//    private static Single s = new Single();
//    private Single(){}
//    public static Single getSingle(){
//        return s;
//    }


    private Single(){}

//    public synchronized static Single getSingle(){
//        if(s == null){
//            s = new Single();
//        }
//        return s;
//    }

    private static class Sin{
        private static Single s = new Single();
    }
    public static Single getSingle(){
        return Sin.s;
    }
}
